{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "5fd23c7c",
   "metadata": {},
   "source": [
    "# 元组\n",
    "\n",
    "* [元组]\n",
    "> 1.它是和list几乎完全一样的序列数据\n",
    "> 2.它与list不同的地方是，**不可变**（因为不可变，所以几乎没有办法）\n",
    "> 3.元组形成：（）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "04a67bb6",
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'time' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-1-9dcdd31be90f>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mtime\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mlocaltime\u001b[0m\u001b[1;33m(\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'time' is not defined"
     ]
    }
   ],
   "source": [
    "time.localtime()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "9b91b44b",
   "metadata": {},
   "outputs": [
    {
     "ename": "NameError",
     "evalue": "name 'time' is not defined",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m                                 Traceback (most recent call last)",
      "\u001b[1;32m<ipython-input-2-c5058db20bc1>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mhelp\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mtime\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[1;31mNameError\u001b[0m: name 'time' is not defined"
     ]
    }
   ],
   "source": [
    "help(time)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "a36109e5",
   "metadata": {},
   "outputs": [],
   "source": [
    "names = \"xx,ee\""
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "id": "e9358a3e",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'xx,ee'"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "names"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8f37e725",
   "metadata": {},
   "source": [
    "# 字典（dict）\n",
    "\n",
    "> 1.字典的创建方式\n",
    ">> 1.直接创建字典，按照字典的结构:\n",
    ">> 2.\n",
    "> 2.字典的性质"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "d34e31ae",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 第一种创建字典的方法\n",
    "stu_info = {\n",
    "    \"stu1001\":\"Alex\",\n",
    "     \"stu1002\":\"ll\",\n",
    "     \"stu1003\":\"babt\",\n",
    "    \n",
    "    \n",
    "}"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "7cee9e6f",
   "metadata": {},
   "outputs": [],
   "source": [
    "# 第二种创建字典的方法\n",
    "#与第一种的区别：\n",
    "# 1.dict() VS {}\n",
    "# 2.stu10001 VS \"stu10001\"\n",
    "# 3. = VS :"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "64546b7c",
   "metadata": {},
   "source": [
    "# week9作业：\n",
    "1.尝试用字典的方法             \n",
    "2.给一组数据，利用字典查询的方法尝试查找指定数据（尝试完成）"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "f6b42321",
   "metadata": {},
   "outputs": [],
   "source": [
    "stu_info_03.就会出现keys啊等等"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
